<!-- Login page -->

<?php 
  //start the session
  session_start();
  
  //we need to capture and release header already sent messages
  ob_start();  
?>

<html>
	<head>
		<title>Login</title>
	</head>
	<body>
		<div id="posCenter">
			<br />
			<h3>Please enter your login details</h3>
			<br />
			<form action="usersvalidation" method="POST">
				Username:<br /><input type="text" name="username" id="username" /><br />
				Password:<br /><input type="password" name="pword" id="pword" /><br />
				<input type="submit" name="submit" id="submit" value="Submit" />
				<p><a href="registration-form">Register Now</a></p>
			</form>
		
			<?php 
					//outputs the error/confirmation message from the record_bookmarks.php script on this page
					if(isset($_SESSION['message']))
        			{
						echo $_SESSION['message'] . '<br />';
            
						//end session
						session_destroy();
        			}
    			?>
		</div>
	</body>
</html>